package com.actions.bluetoothbox2.util;

import android.support.annotation.NonNull;

import java.io.Serializable;

/**
 * Created by liuyong on 2018/6/11.
 */

public class ActionAlarmInfo implements Serializable ,Comparable<ActionAlarmInfo>{

    public int alarm_id;
    public int alarm_used;//1占用
    public int alarm_onoff;//1开
    public int alarm_day;
    public int alarm_hour;
    public int alarm_m;
    public int alarm_s;
    public int alarm_type;
    public int led_action;//灯光id
    public int led_R;
    public int led_G;
    public int led_B;
    public int ring_seq;//音频序号
    public int ring_endtime;
    public int led_volume;//音量
    public String name;
    public String song_name;//sd卡 歌曲名字
    public byte[] song_name_b;//sd卡 歌曲名字byte


    @Override
    public int compareTo(@NonNull ActionAlarmInfo actionAlarmInfo) {
        int i = this.alarm_id - actionAlarmInfo.alarm_id;//按照id排序
//        if(i == 0){
//            return this.score - o.getScore();//如果年龄相等了再用分数进行排序
//        }
        return i;
    }
}
